  /**
   * Generate time : 2016-04-07 18:03:09
   * Version : 1.0.1.V20070717
   */
package com.baosight.sczx.zm.ci.domain;

import com.baosight.iplat4j.core.ei.EiColumn;
import com.baosight.iplat4j.ep.DaoEPBase;
import java.util.HashMap;
import java.util.Map;
import com.baosight.iplat4j.util.StringUtils;
/**
 * ZMCIPersonInfo 
 * table comment : 井下人员信息 
 */
public class ZMCIPersonInfo extends DaoEPBase {

	private String recCreator = " ";		/* 创建人*/
	private String recCreatorTime = " ";		/* 创建时间*/
	private String recRevisorTime = " ";		/* 修改时间*/
	private String recRevisor = " ";		/* 修改人*/
	private String archiveFlag = " ";		/* 归档标志*/
	private String stateId = " ";		/* 数据状态*/
	private String appStateId = " ";		/* 审核状态*/
	private String taskId = " ";		/* 工作流任务号*/
	private String fdKeyId = " ";		/* 主键*/
	private String fdMiningId = " ";//矿井id
	private String fdMiningName = " ";		/* 矿井名称*/
	private String fdDepartment = " ";		/* 施工部门*/
	private String fdPersonName = " ";		/* 人员姓名*/
	private String fdPersonNo = " ";		/* 人员工号*/
	private String fdLocationPlace = " ";		/* 所在位置*/
	private String fdLocationTime = " ";		/* 下井时间*/
	
	/**
	 * initialize the metadata 
	 */
	public void initMetaData() {
		EiColumn eiColumn;
		
		eiColumn = new EiColumn("recCreator");
		eiColumn.setFieldLength(64);	
		eiColumn.setDescName("创建人");
		eiMetadata.addMeta(eiColumn);
		
		eiColumn = new EiColumn("recCreatorTime");
		eiColumn.setFieldLength(14);	
		eiColumn.setDescName("创建时间");
		eiMetadata.addMeta(eiColumn);
		
		eiColumn = new EiColumn("recRevisorTime");
		eiColumn.setFieldLength(14);	
		eiColumn.setDescName("修改时间");
		eiMetadata.addMeta(eiColumn);
		
		eiColumn = new EiColumn("recRevisor");
		eiColumn.setFieldLength(64);	
		eiColumn.setDescName("修改人");
		eiMetadata.addMeta(eiColumn);
		
		eiColumn = new EiColumn("archiveFlag");
		eiColumn.setFieldLength(1);	
		eiColumn.setDescName("归档标志");
		eiMetadata.addMeta(eiColumn);
		
		eiColumn = new EiColumn("stateId");
		eiColumn.setFieldLength(32);	
		eiColumn.setDescName("数据状态");
		eiMetadata.addMeta(eiColumn);
		
		eiColumn = new EiColumn("appStateId");
		eiColumn.setFieldLength(32);	
		eiColumn.setDescName("审核状态");
		eiMetadata.addMeta(eiColumn);
		
		eiColumn = new EiColumn("taskId");
		eiColumn.setFieldLength(64);	
		eiColumn.setDescName("工作流任务号");
		eiMetadata.addMeta(eiColumn);
		
		eiColumn = new EiColumn("fdKeyId");
		eiColumn.setPrimaryKey(true);
		eiColumn.setFieldLength(32);	
		eiColumn.setDescName("主键");
		eiMetadata.addMeta(eiColumn);
		
		eiColumn = new EiColumn("fdMiningId");
		eiColumn.setFieldLength(50);	
		eiColumn.setDescName("矿井编号");
		eiMetadata.addMeta(eiColumn);
	
		eiColumn = new EiColumn("fdMiningName");
		eiColumn.setFieldLength(50);	
		eiColumn.setDescName("矿井名称");
		eiMetadata.addMeta(eiColumn);
		
		eiColumn = new EiColumn("fdDepartment");
		eiColumn.setFieldLength(50);	
		eiColumn.setDescName("施工部门");
		eiMetadata.addMeta(eiColumn);
		
		eiColumn = new EiColumn("fdPersonName");
		eiColumn.setFieldLength(50);	
		eiColumn.setDescName("人员姓名");
		eiMetadata.addMeta(eiColumn);
		
		eiColumn = new EiColumn("fdPersonNo");
		eiColumn.setFieldLength(50);	
		eiColumn.setDescName("人员工号");
		eiMetadata.addMeta(eiColumn);
		
		eiColumn = new EiColumn("fdLocationPlace");
		eiColumn.setFieldLength(50);	
		eiColumn.setDescName("所在位置");
		eiMetadata.addMeta(eiColumn);
		
		eiColumn = new EiColumn("fdLocationTime");
		eiColumn.setFieldLength(14);	
		eiColumn.setDescName("下井时间");
		eiMetadata.addMeta(eiColumn);
	}
	/**
	 * the constructor
	 */
	public ZMCIPersonInfo() {
		initMetaData();
	}
	
	/**
	 * get the recCreator - 创建人
	 * @return the recCreator
	 */
	public String getRecCreator() {
		return this.recCreator;
	}
	
	/**
	 * set the recCreator - 创建人
	 */
	public void setRecCreator(String recCreator) {
		this.recCreator = recCreator;
	}
	/**
	 * get the recCreatorTime - 创建时间
	 * @return the recCreatorTime
	 */
	public String getRecCreatorTime() {
		return this.recCreatorTime;
	}
	
	/**
	 * set the recCreatorTime - 创建时间
	 */
	public void setRecCreatorTime(String recCreatorTime) {
		this.recCreatorTime = recCreatorTime;
	}
	/**
	 * get the recRevisorTime - 修改时间
	 * @return the recRevisorTime
	 */
	public String getRecRevisorTime() {
		return this.recRevisorTime;
	}
	
	/**
	 * set the recRevisorTime - 修改时间
	 */
	public void setRecRevisorTime(String recRevisorTime) {
		this.recRevisorTime = recRevisorTime;
	}
	/**
	 * get the recRevisor - 修改人
	 * @return the recRevisor
	 */
	public String getRecRevisor() {
		return this.recRevisor;
	}
	
	/**
	 * set the recRevisor - 修改人
	 */
	public void setRecRevisor(String recRevisor) {
		this.recRevisor = recRevisor;
	}
	/**
	 * get the archiveFlag - 归档标志
	 * @return the archiveFlag
	 */
	public String getArchiveFlag() {
		return this.archiveFlag;
	}
	
	/**
	 * set the archiveFlag - 归档标志
	 */
	public void setArchiveFlag(String archiveFlag) {
		this.archiveFlag = archiveFlag;
	}
	/**
	 * get the stateId - 数据状态
	 * @return the stateId
	 */
	public String getStateId() {
		return this.stateId;
	}
	
	/**
	 * set the stateId - 数据状态
	 */
	public void setStateId(String stateId) {
		this.stateId = stateId;
	}
	/**
	 * get the appStateId - 审核状态
	 * @return the appStateId
	 */
	public String getAppStateId() {
		return this.appStateId;
	}
	
	/**
	 * set the appStateId - 审核状态
	 */
	public void setAppStateId(String appStateId) {
		this.appStateId = appStateId;
	}
	/**
	 * get the taskId - 工作流任务号
	 * @return the taskId
	 */
	public String getTaskId() {
		return this.taskId;
	}
	
	/**
	 * set the taskId - 工作流任务号
	 */
	public void setTaskId(String taskId) {
		this.taskId = taskId;
	}
	/**
	 * get the fdKeyId - 主键
	 * @return the fdKeyId
	 */
	public String getFdKeyId() {
		return this.fdKeyId;
	}
	
	/**
	 * set the fdKeyId - 主键
	 */
	public void setFdKeyId(String fdKeyId) {
		this.fdKeyId = fdKeyId;
	}
	
	
	public String getFdMiningId() {
		return fdMiningId;
	}
	public void setFdMiningId(String fdMiningId) {
		this.fdMiningId = fdMiningId;
	}

	/**
	 * get the fdMiningName - 矿井名称
	 * @return the fdMiningName
	 */
	public String getFdMiningName() {
		return this.fdMiningName;
	}
	
	/**
	 * set the fdMiningName - 矿井名称
	 */
	public void setFdMiningName(String fdMiningName) {
		this.fdMiningName = fdMiningName;
	}
	/**
	 * get the fdDepartment - 施工部门
	 * @return the fdDepartment
	 */
	public String getFdDepartment() {
		return this.fdDepartment;
	}
	
	/**
	 * set the fdDepartment - 施工部门
	 */
	public void setFdDepartment(String fdDepartment) {
		this.fdDepartment = fdDepartment;
	}
	/**
	 * get the fdPersonName - 人员姓名
	 * @return the fdPersonName
	 */
	public String getFdPersonName() {
		return this.fdPersonName;
	}
	
	/**
	 * set the fdPersonName - 人员姓名
	 */
	public void setFdPersonName(String fdPersonName) {
		this.fdPersonName = fdPersonName;
	}
	/**
	 * get the fdPersonNo - 人员工号
	 * @return the fdPersonNo
	 */
	public String getFdPersonNo() {
		return this.fdPersonNo;
	}
	
	/**
	 * set the fdPersonNo - 人员工号
	 */
	public void setFdPersonNo(String fdPersonNo) {
		this.fdPersonNo = fdPersonNo;
	}
	/**
	 * get the fdLocationPlace - 所在位置
	 * @return the fdLocationPlace
	 */
	public String getFdLocationPlace() {
		return this.fdLocationPlace;
	}
	
	/**
	 * set the fdLocationPlace - 所在位置
	 */
	public void setFdLocationPlace(String fdLocationPlace) {
		this.fdLocationPlace = fdLocationPlace;
	}
	/**
	 * get the fdLocationTime - 下井时间
	 * @return the fdLocationTime
	 */
	public String getFdLocationTime() {
		return this.fdLocationTime;
	}
	
	/**
	 * set the fdLocationTime - 下井时间
	 */
	public void setFdLocationTime(String fdLocationTime) {
		this.fdLocationTime = fdLocationTime;
	}
	/**
	 * get the value from Map
	 */
	public void fromMap(Map map) {
	
		setRecCreator(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("recCreator")), recCreator));
		setRecCreatorTime(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("recCreatorTime")), recCreatorTime));
		setRecRevisorTime(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("recRevisorTime")), recRevisorTime));
		setRecRevisor(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("recRevisor")), recRevisor));
		setArchiveFlag(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("archiveFlag")), archiveFlag));
		setStateId(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("stateId")), stateId));
		setAppStateId(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("appStateId")), appStateId));
		setTaskId(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("taskId")), taskId));
		setFdKeyId(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdKeyId")), fdKeyId));
		setFdMiningName(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdMiningId")), fdMiningId));
		setFdMiningName(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdMiningName")), fdMiningName));
		setFdDepartment(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdDepartment")), fdDepartment));
		setFdPersonName(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdPersonName")), fdPersonName));
		setFdPersonNo(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdPersonNo")), fdPersonNo));
		setFdLocationPlace(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdLocationPlace")), fdLocationPlace));
		setFdLocationTime(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdLocationTime")), fdLocationTime));
	}
	
	/**
	 * set the value to Map
	 */
	public Map toMap() {
		
		Map map = new HashMap();
			map.put("recCreator",StringUtils.toString(recCreator, eiMetadata.getMeta("recCreator")));	
			map.put("recCreatorTime",StringUtils.toString(recCreatorTime, eiMetadata.getMeta("recCreatorTime")));	
			map.put("recRevisorTime",StringUtils.toString(recRevisorTime, eiMetadata.getMeta("recRevisorTime")));	
			map.put("recRevisor",StringUtils.toString(recRevisor, eiMetadata.getMeta("recRevisor")));	
			map.put("archiveFlag",StringUtils.toString(archiveFlag, eiMetadata.getMeta("archiveFlag")));	
			map.put("stateId",StringUtils.toString(stateId, eiMetadata.getMeta("stateId")));	
			map.put("appStateId",StringUtils.toString(appStateId, eiMetadata.getMeta("appStateId")));	
			map.put("taskId",StringUtils.toString(taskId, eiMetadata.getMeta("taskId")));	
			map.put("fdKeyId",StringUtils.toString(fdKeyId, eiMetadata.getMeta("fdKeyId")));	
			map.put("fdMiningId",StringUtils.toString(fdMiningId, eiMetadata.getMeta("fdMiningId")));	
			map.put("fdMiningName",StringUtils.toString(fdMiningName, eiMetadata.getMeta("fdMiningName")));	
			map.put("fdDepartment",StringUtils.toString(fdDepartment, eiMetadata.getMeta("fdDepartment")));	
			map.put("fdPersonName",StringUtils.toString(fdPersonName, eiMetadata.getMeta("fdPersonName")));	
			map.put("fdPersonNo",StringUtils.toString(fdPersonNo, eiMetadata.getMeta("fdPersonNo")));	
			map.put("fdLocationPlace",StringUtils.toString(fdLocationPlace, eiMetadata.getMeta("fdLocationPlace")));	
			map.put("fdLocationTime",StringUtils.toString(fdLocationTime, eiMetadata.getMeta("fdLocationTime")));	
			
		return map;
	
	}
}